<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]>      <html class="no-js"> <!--<![endif]-->
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title></title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
        
    </head>
    <body>
        <!--[if lt IE 7]>
            <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="#">upgrade your browser</a> to improve your experience.</p>
        <![endif]-->
        <button id="btn" >点位</button>
        <script src="./js/jquery-min.js"></script>
        <script async defer>
            function handle(){
                console.log(111111)
            }
            $('#btn').click(function (){
                debounce(handle,2000)
            })
            function debounce(fn, wait) {
                var timeout = null;      //定义一个定时器
                return function() {
                    if(timeout !== null) 
                    clearTimeout(timeout);  //清除这个定时器
                    timeout = setTimeout(fn, wait);  
                }
            }
        </script>
    </body>
</html>